package abstractBattercake;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2019-10-06 09:44
 */
public class SausageDecorator extends BattercakeDecorator {

    public SausageDecorator(Battercake battercake) {
        super(battercake);
    }
    protected void doSomething() {}

    @Override
    protected String getMsg() {
        return super.getMsg() + "+1 根香肠";
    }

    @Override
    protected int getPrice() {
        return super.getPrice() + 2;
    }

}
